//
//  XTXBasicNavigationController.m
//  xiaotianxin
//
//  Created by txx on 2019/11/13.
//  Copyright © 2019 XYC. All rights reserved.
//

#import "XTXBasicNavigationController.h"

@interface XTXBasicNavigationController ()

@end

@implementation XTXBasicNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    
    if (self.childViewControllers.count > 0) { // 非跟控制器就隐藏底部TabBar
        viewController.hidesBottomBarWhenPushed = YES;
        ///显示导航控制器
        [self setNavigationBarHidden:NO animated:NO];
    }
    [super pushViewController:viewController animated:animated];
}
@end
